package cos.android.tim.viewythread;

import android.content.Context;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class LevelSelectView extends SurfaceView implements
		SurfaceHolder.Callback {

	// private LevelSelectThread levelSelectThread;

	public LevelSelectView(Context context, AttributeSet attrs) {
		super(context, attrs);
		SurfaceHolder holder = getHolder();
		holder.addCallback(this);

		/*
		 * levelSelectThread = new LevelSelectThread(holder, context, new
		 * Handler() {
		 * 
		 * @Override public void handleMessage(Message m) {
		 * 
		 * Long fps = m.getData().getLong("fps");
		 * 
		 * fpsTextView.setVisibility(View.VISIBLE);
		 * fpsTextView.setText(fps.toString()); } });
		 */

		setFocusable(true); // make sure we get key events
	}

	@Override
	public void surfaceChanged(SurfaceHolder holder, int format, int width,
			int height) {
		// TODO Auto-generated method stub

	}

	@Override
	public void surfaceCreated(SurfaceHolder holder) {
		// TODO Auto-generated method stub

	}

	@Override
	public void surfaceDestroyed(SurfaceHolder holder) {
		// TODO Auto-generated method stub

	}

}
